import instance from '@/utils/request'

/**
 * 获取学科简单列表
 * @returns
 */
export const reqGetSubjectsSimple = () => {
  return instance({
    method: 'get',
    url: '/subjects/'
  })
}

/**
 * 获取学科列表
 * @param {*} id
 * @returns
 */
export const reqGetSubjectsDetail = (id) => {
  return instance({
    method: 'get',
    url: `/subjects/${id}`
  })
}

/**
 * 标签列表
 * @returns
 */
export const reqGetUserList = () => {
  return instance({
    method: 'get',
    url: '/users/simple'
  })
}
